﻿<Page x:Class="friends"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="300"
      Title="friends"
      Loaded="Page_Loaded_1">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="32"/>
        </Grid.RowDefinitions>
        <TabControl>
            <TabItem Header="Все"></TabItem>
            <TabItem Header="Онлайн"
                     IsSelected="True">
                <ListBox x:Name="List3">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid Height="48">
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="64"/>
                                    <ColumnDefinition/>
                                </Grid.ColumnDefinitions>
                                <Image Source="{Binding AvatarUrl}"
                                       Width="41"
                                       Height="40"/>
                                <StackPanel Grid.Column="1">
                                    <TextBlock Margin="4">
                                        <Hyperlink Foreground="White"
                                                   FontWeight="Bold">
                                            <TextBlock Text="{Binding Name}"/>
                                        </Hyperlink>
                                        <Image Source="{Binding Medal}"/>
                                    </TextBlock>
                                </StackPanel>
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                    <ListItem/>
                    <ListItem/>
                </ListBox>
            </TabItem>
            <TabItem Header="По алфафиту"></TabItem>
        </TabControl>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            <StackPanel>
                
            </StackPanel>
            <StackPanel Grid.Column="1"
                        Orientation="Horizontal" HorizontalAlignment="Right">
                <TextBox Width="40"
                         Margin="4"/>
                <Button Content="Перейти"
                        Margin="4"
                        Width="80"/>
            </StackPanel>
        </Grid>
    </Grid>
</Page>
